(function (doc, win) {
  var docEl = doc.documentElement,  //getElementById("luckDraw")
    resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
    recalc = function () {
      var clientWidth = docEl.clientWidth;
      //if (!clientWidth) return;
      if (clientWidth < 600) {
        var width = clientWidth;
      } else {
        var width = 600;
      }
      docEl.style.fontSize = 20 * (width / 320) + 'px';
      //宽与高度
      //document.body.style.height = clientWidth * (900 / 1440) + "px"
    };
  win.addEventListener(resizeEvt, recalc, false);
  doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);